package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 雨排口监控表
 * </p>
 *
 * @author gzd
 * @since 2025-08-23
 */
@Getter
@Setter
@TableName("rainfall_outlet_monitoring")
@Schema( description = "雨排口监控表")
public class RainfallOutletMonitoring implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description = "ID")
    @TableId("ID")
    private String id;

    @Schema( description = "企业名称")
    @TableField("COMPANY_NAME")
    private String companyName;

    @Schema( description = "设备名称")
    @TableField("DEVICE_NAME")
    private String deviceName;

    @Schema( description = "mn码")
    @TableField("MN_CODE")
    private String mnCode;

    @Schema( description = "应急池液位")
    @TableField("EMERGENCY_POOL_LEVEL")
    private BigDecimal emergencyPoolLevel;

    @Schema( description = "应急池阀门状态")
    @TableField("EMERGENCY_POOL_VALVE_STATUS")
    private String emergencyPoolValveStatus;

    @Schema( description = "雨排口液位")
    @TableField("RAIN_OUTLET_LEVEL")
    private BigDecimal rainOutletLevel;

    @Schema( description = "雨排口阀门状态")
    @TableField("RAIN_OUTLET_VALVE_STATUS")
    private String rainOutletValveStatus;

    @Schema( description = "监测时间")
    @TableField("MONITORING_TIME")
    private LocalDateTime monitoringTime;

    @Schema( description = "状态")
    @TableField("STATUS")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

    @TableField("COMPANY_ID")
    private String companyId;

    @TableField("PARK_ID")
    private String parkId;

    @TableField("EMERGENCY_POOL_LEVEL_FLAG")
    private String emergencyPoolLevelFlag;

    @TableField("EMERGENCY_POOL_VALVE_STATUS_FLAG")
    private String emergencyPoolValveStatusFlag;

    @TableField("RAIN_OUTLET_LEVEL_FLAG")
    private String rainOutletLevelFlag;

    @TableField("RAIN_OUTLET_VALVE_STATUS_FLAG")
    private String rainOutletValveStatusFlag;


    @Schema( description = "远控开启指令（）")
    @TableField("REMOTE_OPEN_CMD")
    private String remoteOpenCmd;

    @Schema( description = "远控关闭指令（）")
    @TableField("REMOTE_CLOSE_CMD")
    private String remoteCloseCmd;

    @Schema( description = "阀门开启指令（）")
    @TableField("VALVE_OPEN_CMD")
    private String valveOpenCmd;

    @Schema( description = "阀门开启结束指令（）")
    @TableField("VALVE_OPEN_END_CMD")
    private String valveOpenEndCmd;

    @Schema( description = "阀门关闭指令（）")
    @TableField("VALVE_CLOSE_CMD")
    private String valveCloseCmd;

    @Schema( description = "阀门关闭结束指令（）")
    @TableField("VALVE_CLOSE_END_CMD")
    private String valveCloseEndCmd;

    @Schema( description = "指令发送时间")
    @TableField("CMD_SEND_TIME")
    private LocalDateTime cmdSendTime;

    @Schema( description = "指令响应时间")
    @TableField("CMD_RESPONSE_TIME")
    private LocalDateTime cmdResponseTime;


    @Schema( description ="降雨量(mm)")
    @TableField("RAINFALL")
    private BigDecimal rainfall;

    @Schema( description ="天气状况")
    @TableField("WEATHER")
    private String weather;

    @Schema( description ="电导率(μS/cm)")
    @TableField("CONDUCTIVITY")
    private BigDecimal conductivity;

    @Schema( description ="PH值")
    @TableField("PH_VALUE")
    private BigDecimal phValue;

    @Schema(description = "外部站点编码")
    @TableField("EXTRA_SITE_ID")
    private Integer extraSiteId;
}
